//
//  XJMoreFooterView.m
//  XinJiangMall
//
//  Created by Tzyang on 2018/4/8.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import "XJMoreFooterView.h"

@implementation XJMoreFooterView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = WHITE_COLOR;
        
        self.logoutBtn.titleLabel.font = XJFONTSET_R(15);
        [self.logoutBtn setTitle:@"退出登录" forState:UIControlStateNormal];
        [self.logoutBtn setTitleColor:XJCOLOR_RGB(17, 17, 17) forState:UIControlStateNormal];
        
        self.logoutBtn.layer.masksToBounds = YES;
        self.logoutBtn.layer.borderWidth = 1;
        self.logoutBtn.layer.borderColor = XJCOLOR_RGB(17, 17, 17).CGColor;
        self.logoutBtn.layer.cornerRadius = ADAPTWidth(44)/2;
        
    }
    return self;
}

- (UIButton *)logoutBtn{
    
    if (!_logoutBtn) {
        UIButton * logoutBtn = [[UIButton alloc]initWithFrame:CGRectMake(ADAPTWidth(20), 15, KWidth - 2 * ADAPTWidth(20), ADAPTWidth(44))];
        self.logoutBtn = logoutBtn;
        [self addSubview:logoutBtn];
    }
    return _logoutBtn;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
